package cn.kgc.spring.day01.servlet;

import cn.kgc.spring.day01.annotations.Autowired;
import cn.kgc.spring.day01.service.UserService;

/**
 * @author 课工场
 * @date 2024/7/11
 * @description
 *     层次之间设计接口  为了实现解耦
 */

public class UserServlet  {

    @Autowired
    private UserService userService;

    private String info;

    public UserService  getUserService(){
        return this.userService;
    }

    public Boolean  deleteUser(Integer id){
       return userService.deleteUser(id);
    }

}


